package com.xiang.config;

import com.xiang.bean.MyTestAop;
import com.xiang.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com.xiang.bean")
@EnableAspectJAutoProxy
public class MyConfig {

	@Bean
	 public Person person2(){
		return new Person();
	}

	@Bean("myTestAop")
	 public MyTestAop myTestAop(){
		return new MyTestAop();
	}
}
